/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-24 11:30:14
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiInput.js
 * @CIMC-V2
 */
import { exInput, exSwitch, exInputNumber, exRadioGroup } from '@ve/common/components/extension'

export default {
  VERSION: '20220701',
  type: 'uiTableNumberInput',
  extension: {
    minVal: exInputNumber('最小值', -100000000000000000000, -100000000000000000000, 100000000000000000000),
    maxVal: exInputNumber('最大值', 100000000000000000000, -100000000000000000000, 100000000000000000000),
    step: exInputNumber('步长', 1),
    precision: exInputNumber('小数位', 0),
    controls: exSwitch('控制按钮', false),
    anInteger: exInput('整数倍', '', '控制组件值为表单内其他项的整数倍'),
    nullValueControl: exSwitch('空值免控', false, '当倍数值为 空 或 0 时，是否不控制整数倍'),
    placeholder: exInput('提示', '请输入'),
    arithmeticOperation: exInput(
      '计算式',
      '',
      '当编辑行数据改变时，会自动执行此算数计算式，并将结果值赋值给此列！当配置了此值后，整数倍控制将失效！'
    ),
    getPrecisionType: exRadioGroup('小数取舍类型', 'round', [
      {
        value: 'round',
        label: '四舍五入',
      },
      {
        value: 'advance',
        label: '进一',
      },
      {
        value: 'discard',
        label: '丢弃',
      },
    ]),
    defaultValue: exInputNumber('默认值', 0),
  },
}
